package com.rzdata.poct.system.domain.business.bo;

import com.rzdata.poct.common.core.domain.BaseEntity;
import com.rzdata.poct.common.core.validate.AddGroup;
import com.rzdata.poct.common.core.validate.EditGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;


/**
 * POCT检测项业务对象 poct_detection_items
 *
 * @author ruoyi
 * @date 2021-09-09
 */

@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel("POCT检测项业务对象")
public class PoctDetectionItemsBo extends BaseEntity {

    /**
     * 主键
     */
    @ApiModelProperty(value = "主键")
    private String id;

    /**
     * 检验ID
     */
    @ApiModelProperty(value = "检验ID", required = true)
    @NotNull(message = "检验ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long detectionId;

    /**
     * 检验元素ID 如：血常规单项
     */
    @ApiModelProperty(value = "检验元素ID 如：血常规单项")
    private Long itemId;

    /**
     * 检验元素名称
     */
    @ApiModelProperty(value = "检验元素名称")
    private String itemName;

    /**
     * 检验元素英文名称
     */
    @ApiModelProperty(value = "检验元素英文名称")
    private String itemEname;

    /**
     * 检验值
     */
    @ApiModelProperty(value = "检验值")
    private String detectionValue;

    /**
     * 参考值区间
     */
    @ApiModelProperty(value = "参考值区间")
    private String referenceValue;

    /**
     * 单位
     */
    @ApiModelProperty(value = "单位")
    private String unit;

    /**
     * 检验方法
     */
    @ApiModelProperty(value = "检验方法")
    private String detectionMethod;


    /**
     * 分页大小
     */
    @ApiModelProperty("分页大小")
    private Integer pageSize;

    /**
     * 当前页数
     */
    @ApiModelProperty("当前页数")
    private Integer pageNum;

    /**
     * 排序列
     */
    @ApiModelProperty("排序列")
    private String orderByColumn;

    /**
     * 排序的方向desc或者asc
     */
    @ApiModelProperty(value = "排序的方向", example = "asc,desc")
    private String isAsc;

}
